#include <stdio.h>
struct student
{
    unsigned int ID;
    int age;
    char *name;
    float score;
    struct 
    {
        float price;
        char * namex;
    }book;
};
struct student zhangshan,lisi;


void fun(struct student *p)
{
     printf("%u\n",p->ID);
    printf("%d\n",(*p).age);
    printf("%s\n",(*p).name);
    printf("%f\n",p->score);
}

int main(void)
{
    struct student zhangshan={2518,24,"张山",80,{68.8,"长夜难明"}};

    zhangshan.ID=2599;

    printf("%u\n",zhangshan.ID);
    printf("%d\n",zhangshan.age);
    printf("%s\n",zhangshan.name);
    printf("%f\n",zhangshan.score);
    printf("\n\n");

    fun(&zhangshan);

    return 0;
}